import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"
Vue.use(VueRouter)
import Home from "./views/Home.vue"
import News from "./views/News.vue"
import PE from "./views/PE.vue"

// 二级页面
import PeHome from "./views/child/PeHome.vue"
import ForeginPe from "./views/child/ForeignPe.vue"
import DomesticPe from "./views/child/DomesticPe.vue"
const routes = [
  {
    path: "/",
    redirect: "/home"
  },
  {
    path: "/home",
    component: Home
  },
  {
    path: "/news",
    component: News
  },
  {
    path: "/pe",
    component: PE,
    children: [
      {
        path: "/",
        redirect: "pehome"
      },
      {
        path: "pehome",
        component: PeHome
      },
      {
        path: "foreginpe",
        component: ForeginPe
      },
      {
        path: "domesticpe",
        component: DomesticPe
      },
    ]
  },
]
const router = new VueRouter({
  routes
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
